package com.kai.service.article.mapper;

import com.kai.service.article.entity.ArticleOperateRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kai.service.data.response.article.ArticleResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 文章操作记录表 Mapper 接口
 * </p>
 *
 * @author wjk
 * @since 2022-03-20
 */
public interface ArticleOperateRecordMapper extends BaseMapper<ArticleOperateRecord> {

    List<Long> hotArticleIds();

    List<ArticleResponse> countByArticleIds(@Param("articleIds") Set<Long> articleIds);
}
